// CancelTaskDto.java
package com.zzyl.nursing.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel(value = "取消任务请求参数")
public class CancelTaskDto {

    @NotNull(message = "护理任务ID不能为空")
    @ApiModelProperty(value = "护理任务ID", required = true)
    private Long taskId;

    @NotBlank(message = "取消原因不能为空")
    @ApiModelProperty(value = "取消原因", required = true)
    private String reason;
}
